﻿using DataAccess.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Mapping
{
    public class FirstMap : EntityTypeConfiguration<First>
    {
        public FirstMap()
        {
            this.ToTable("first_t");
            this.HasKey(u => u.Id);
            this.Property(u => u.Id).HasColumnName("id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            this.Property(u => u.Name).HasColumnName("name");
            this.Property(u => u.Status).HasColumnName("status");
            this.Property(u => u.CreationTime).HasColumnName("creation_time");
            this.Property(u => u.UpdateTime).HasColumnName("update_time");
        }
    }
}
